package com.bean;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 销售退货记录表实体类
 */
public class SalesReturnRecord implements Serializable {
    /*主键*/
    private Integer id;
    /*退货订单id*/
    private Long orderId;
    /*退货商品id*/
    private Integer productId;
    /*退货商品数量*/
    private Integer number;
    /*退货商品金额*/
    private Double price;
    /*退货原因*/
    private String reason;
    /*退货时间*/
    private Date returnTime;

    private Commodity commodity;

    public Commodity getCommodity() {
        return commodity;
    }

    public void setCommodity(Commodity commodity) {
        this.commodity = commodity;
    }

    public SalesReturnRecord() {
    }

    public SalesReturnRecord(Long orderId, Integer productId, Integer number, Double price, String reason, Date returnTime) {
        this.orderId = orderId;
        this.productId = productId;
        this.number = number;
        this.price = price;
        this.reason = reason;
        this.returnTime = returnTime;
    }

    public SalesReturnRecord(Integer id, Long orderId, Integer productId, Integer number, Double price, String reason, Date returnTime) {
        this.id = id;
        this.orderId = orderId;
        this.productId = productId;
        this.number = number;
        this.price = price;
        this.reason = reason;
        this.returnTime = returnTime;
    }

    @Override
    public String toString() {
        return "SalesReturnRecord{" +
                "id=" + id +
                ", orderId=" + orderId +
                ", productId=" + productId +
                ", number=" + number +
                ", price=" + price +
                ", reason='" + reason + '\'' +
                ", returnTime=" + returnTime +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public Date getReturnTime() {
        return returnTime;
    }

    public void setReturnTime(Date returnTime) {
        this.returnTime = returnTime;
    }
}
